package vip.huhailong.thumbnailatorstudy.service;

import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

/**
 * 图片处理接口
 */
public interface IImageProcessingService {

    void generateThumbnailImageForDir(String dirPath, Integer widthPix, Integer heightPix, String imageType);

    void addWatermark(String sourceImagePath, String watermarkImagePath, Integer widthPix, Integer heightPix, Integer watermarkWidthPix, Integer watermarkHeightPix, Float opacity, HttpServletResponse response);

    void rotation(String filePath, Double deg, Integer widthPix, Integer heightPix, String imageType, HttpServletResponse response);

    void getImage(String filePath, Integer widthPix, Integer heightPix, Boolean aspect, Double opacity, HttpServletResponse response);

}
